<!-- 
  time:2024-2-27d;
  content:登录;
  name:gaozhijie;
 -->
<template>
	<view class="home">
		<!-- 背景图 -->
		<image class="home_backg_icon" src="../../static/image/banner.png" alt="" />
		<view class="content">
			<view class="home_backg">
				<view class="logo_view">
					<image class="home_logo" src="../../static/image/logo.png" alt=""></image>
				</view>
				<view class="home_backg_title">
					<view class="title" style="letter-spacing: 20rpx;">
						宁东能源化工基地
					</view>
					<view class="title" style="letter-spacing: 10rpx;margin-top: 5rpx;">
						数字工地巡检系统
					</view>
				</view>
			</view>
			<!-- 账号密码 -->
			<view class="home_inp_box">
				<view class="home_inp_box_txt">
					<input class="input_cla" type="text" v-model="ruleForm.username" placeholder="请输入用户名" />
					<image src="../../static/image/icon-3.png" class="login_icon_left"></image>
				</view>
				<view class="home_inp_box_txt">
					<input class="input_cla" :type="inputtype" v-model="ruleForm.password" placeholder="请输入密码" />
					<image src="../../static/image/icon-1.png" class="login_icon_pas"></image>
					<image src="../../static/image/icon-2.png" class="login_icon_left"></image>
					<!-- <image src="../../static/image/icon-2.png" class="login_icon_pas"></image> -->
				</view>
				<!-- 登录-->
				<button :disabled="disabled" class="home_logbtn" @click="login">
					登录
				</button>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				imageSrc: '',
				ruleForm: {
					username: '',
					password: ''
				},
				disabled: false,
				loginuser: '',
				usertype: '',
				bannercode: '',
				area_contlist: [],
				areacontlist: [],
				pid: '',
				schedulearr: [],
				inputtype: 'password',

			}
		},
		onLoad(options) {},
		onShow() {},
		mounted() {

		},
		methods: {
			// 跳转登录
			login() {
				uni.switchTab({
					url: '/pages/index/index',
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.home {
		width: 100%;
		height: 100vh;
		position: relative;
	}

	.content {
		width: 100%;
		height: 100vh;
		position: absolute;
		top: var(--status-bar-height);
	}

	.home_backg_icon {
		width: 100%;
		height: 100vh;
		position: absolute;
		top: 0;
	}


	.home_backg {
		width: 100%;
		height: 25%;

		.logo_view {
			display: flex;
			align-items: center;
			justify-content: center;
			margin-top: 130rpx;

			.home_logo {
				width: 247rpx;
				height: 210rpx;
			}
		}

	}

	.home_backg_title {

		.title {
			text-align: center;
			font-family: FZY3JW;
			font-weight: normal;
			font-size: 44rpx;
			color: #FFFFFF;
		}
	}

	.home_inp_box {
		width: 100%;
		height: 35%;
		margin-top: 80rpx;

	}

	.home_inp_box_txt {
		width: 80%;
		margin-left: 10%;
		margin-top: 30rpx;
		height: 95rpx;
		display: flex;
		align-items: center;
		border: 1px solid #ccc;
		border-radius: 50rpx;
		position: relative;
	}

	.input_cla {
		width: 100%;
		height: 100%;
		font-size: 26rpx;
		padding-left: 95rpx;
		border: none;
		border-radius: 43rpx;
		color: #FFFFFF;

	}

	.input_cla::placeholder {
		color: #fff;
	}



	.home_inp_title {
		width: 80%;
		margin-left: 15%;
		margin-top: 80rpx;
		font-size: 34rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		color: #000000;
	}

	.input_img {
		width: 24rpx;
		height: 28rpx;
		margin-left: 55rpx;
	}

	.home_checkbox {
		width: 70%;
		margin-left: 10%;
		margin-top: 48rpx;
		font-size: 30rpx;
		font-family: Source Han Sans CN-Regular, Source Han Sans CN;
		font-weight: 400;
		color: #B1B1B1;
	}

	.uni-checkbox-input {
		width: 36rpx;
		height: 36rpx;
		color: #B1B1B1 !important;
	}

	.home_logbtn {
		width: 80%;
		height: 90rpx;
		background: #fff;
		border-radius: 36rpx;
		font-size: 34rpx;
		font-family: PingFang SC-Regular;
		font-weight: Regular;
		color: #46A4D8;
		text-align: center;
		line-height: 90rpx;
		margin-top: 80rpx;
	}

	.login_icon_left {
		width: 35rpx;
		height: 35rpx;
		position: absolute;
		left: 40rpx;
		top: 30rpx;
	}

	.login_icon_pas {
		width: 35rpx;
		height: 35rpx;
		position: absolute;
		right: 30rpx;
		top: 30rpx;
	}
	
	::v-deep .input-placeholder {
		color: #fff !important;
	}
</style>